chore: update eslint* dependencies (major) #1302
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.57.0
->^9.0.0
^9.1.0
->^10.0.0
^1.0.1
->^2.0.0
^4.6.2
->^5.0.0
Release Notes
eslint/eslint (eslint)
v9.18.0
Compare Source
v9.17.0
Compare Source
v9.16.0
Compare Source
Features
8f70eb1
feat: AddignoreComputedKeys
option insort-keys
rule (#19162) (Milos Djermanovic)Documentation
9eefc8f
docs: fix typos inuse-isnan
(#19190) (루밀LuMir)0c8cea8
docs: switch the order of words inno-unreachable
(#19189) (루밀LuMir)0c19417
docs: add missing backtick tono-async-promise-executor
(#19188) (루밀LuMir)8df9276
docs: add backtick in-0
indescription
ofno-compare-neg-zero
(#19186) (루밀LuMir)7e16e3f
docs: fixcaseSensitive
option's title ofsort-keys
(#19183) (Tanuj Kanti)0c6b842
docs: fix typos inmigration-guide.md
(#19180) (루밀LuMir)353266e
docs: fix a typo indebug.md
(#19179) (루밀LuMir)5ff318a
docs: delete unnecessary horizontal rule(---
) innodejs-api
(#19175) (루밀LuMir)576bcc5
docs: mark more rules as handled by TypeScript (#19164) (Tanuj Kanti)742d054
docs: note thatno-restricted-syntax
can be used with any language (#19148) (Milos Djermanovic)Chores
feb703b
chore: upgrade to@eslint/[email protected]
(#19195) (Francesco Trotta)df9bf95
chore: package.json update for @eslint/js release (Jenkins)f831893
chore: add type forignoreComputedKeys
option ofsort-keys
(#19184) (Tanuj Kanti)3afb8a1
chore: update dependency @eslint/json to ^0.8.0 (#19177) (Milos Djermanovic)1f77c53
chore: addrepository.directory
property topackage.json
(#19165) (루밀LuMir)d460594
chore: update dependency @arethetypeswrong/cli to ^0.17.0 (#19147) (renovate[bot])45cd4ea
refactor: update default options in rules (#19136) (Milos Djermanovic)v9.15.0
Compare Source
v9.14.0
Compare Source
v9.13.0
Compare Source
v9.12.0
Compare Source
Features
5a6a053
feat: update tojiti
v2 (#18954) (Arya Emami)17a07fb
feat: Hooks for test cases (RuleTester) (#18771) (Anna Bocharova)2ff0e51
feat: Implement alternate config lookup (#18742) (Nicholas C. Zakas)2d17453
feat: Implement modified cyclomatic complexity (#18896) (Dmitry Pashkevich)Bug Fixes
ea380ca
fix: Upgrade retry to avoid EMFILE errors (#18986) (Nicholas C. Zakas)fdd6319
fix: Issues with type definitions (#18940) (Arya Emami)Documentation
ecbd522
docs: Mention code explorer (#18978) (Nicholas C. Zakas)7ea4ecc
docs: Clarifying the Use of Meta Objects (#18697) (Amaresh S M)d3e4b2e
docs: Clarify how to exclude.js
files (#18976) (Milos Djermanovic)57232ff
docs: Mention plugin-kit in language docs (#18973) (Nicholas C. Zakas)b80ed00
docs: Update README (GitHub Actions Bot)cb69ab3
docs: Update README (GitHub Actions Bot)7fb0d95
docs: Update README (GitHub Actions Bot)493348a
docs: Update README (GitHub Actions Bot)87a582c
docs: fix typo inid-match
rule (#18944) (Jay)Chores
555aafd
chore: upgrade to@eslint/[email protected]
(#18987) (Francesco Trotta)873ae60
chore: package.json update for @eslint/js release (Jenkins)d0a5414
refactor: replace strip-ansi with native module (#18982) (Cristopher)b827029
chore: Enable JSON5 linting (#18979) (Milos Djermanovic)8f55ca2
chore: Upgrade espree, eslint-visitor-keys, eslint-scope (#18962) (Nicholas C. Zakas)c1a2725
chore: update dependency mocha to ^10.7.3 (#18945) (Milos Djermanovic)v9.11.1
Compare Source
v9.11.0
Compare Source
Features
ec30c73
feat: add "eslint/universal" to exportLinter
(#18883) (唯然)c591da6
feat: Add language to types (#18917) (Nicholas C. Zakas)492eb8f
feat: limit the name given toImportSpecifier
inid-length
(#18861) (Tanuj Kanti)19c6856
feat: Addno-useless-constructor
suggestion (#18799) (Jordan Thomson)a48f8c2
feat: add typeFormatterFunction
, updateLoadedFormatter
(#18872) (Francesco Trotta)Bug Fixes
5e5f39b
fix: add missing types forno-restricted-exports
rule (#18914) (Kristóf Poduszló)8f630eb
fix: add missing types forno-param-reassign
options (#18906) (Kristóf Poduszló)d715781
fix: add missing types forno-extra-boolean-cast
options (#18902) (Kristóf Poduszló)2de5742
fix: add missing types forno-misleading-character-class
options (#18905) (Kristóf Poduszló)c153084
fix: add missing types forno-implicit-coercion
options (#18903) (Kristóf Poduszló)fa11b2e
fix: add missing types forno-empty-function
options (#18901) (Kristóf Poduszló)a0deed1
fix: add missing types forcamelcase
options (#18897) (Kristóf Poduszló)Documentation
e4e5709
docs: correctprefer-object-has-own
type definition comment (#18924) (Nitin Kumar)91cbd18
docs: add unicode abbreviations in no-irregular-whitespace rule (#18894) (Alix Royere)59cfc0f
docs: clarifyresultsMeta
inLoadedFormatter
type (#18881) (Milos Djermanovic)adcc50d
docs: Update README (GitHub Actions Bot)4edac1a
docs: Update README (GitHub Actions Bot)Build Related
959d360
build: Support updates to previous major versions (#18871) (Milos Djermanovic)Chores
ca21a64
chore: upgrade @eslint/js@9.11.0 (#18927) (Milos Djermanovic)a10f90a
chore: package.json update for @eslint/js release (Jenkins)e4e02cc
refactor: Extract processor logic into ProcessorService (#18818) (Nicholas C. Zakas)6d4484d
chore: updates for v8.57.1 release (Jenkins)71f37c5
refactor: use optional chaining when validating config rules (#18893) (lucasrmendonca)2c2805f
chore: Add PR note to all templates (#18892) (Nicholas C. Zakas)7b852ce
refactor: useDirective
class from@eslint/plugin-kit
(#18884) (Milos Djermanovic)d594ddd
chore: update dependency @eslint/core to ^0.6.0 (#18863) (renovate[bot])78b2421
chore: Update change.yml (#18882) (Nicholas C. Zakas)a416f0a
chore: enable$ExpectType
comments in .ts files (#18869) (Francesco Trotta)v9.10.0
Compare Source
v9.9.1
Compare Source
v9.9.0
Compare Source
Features
41d0206
feat: Add support for TS config files (#18134) (Arya Emami)3a4eaf9
feat: add suggestion torequire-await
to removeasync
keyword (#18716) (Dave)Documentation
9fe068c
docs: how to author plugins with configs that extend other configs (#18753) (Alec Gibson)48117b2
docs: add version support page in the side navbar (#18738) (Amaresh S M)fec2951
docs: add version support page to the dropdown (#18730) (Amaresh S M)38a0661
docs: Fix typo (#18735) (Zaina Al Habash)3c32a9e
docs: Update yarn command for creating ESLint config (#18739) (Temitope Ogunleye)f9ac978
docs: Update README (GitHub Actions Bot)Chores
461b2c3
chore: upgrade to@eslint/[email protected]
(#18765) (Francesco Trotta)59dba1b
chore: package.json update for @eslint/js release (Jenkins)fea8563
chore: update dependency @eslint/core to ^0.3.0 (#18724) (renovate[bot])aac191e
chore: update dependency @eslint/json to ^0.3.0 (#18760) (renovate[bot])b97fa05
chore: update wdio dependencies for more stable tests (#18759) (Christian Bromann)v9.8.0
Compare Source
v9.7.0
Compare Source
Features
7bd9839
feat: add support for es2025 duplicate named capturing groups (#18630) (Yosuke Ota)1381394
feat: addregex
option inno-restricted-imports
(#18622) (Nitin Kumar)Bug Fixes
14e9f81
fix: destructuring in catch clause inno-unused-vars
(#18636) (Francesco Trotta)Documentation
9f416db
docs: Add Powered by Algolia label to the search. (#18633) (Amaresh S M)c8d26cb
docs: Open JS Foundation -> OpenJS Foundation (#18649) (Milos Djermanovic)6e79ac7
docs:loadESLint
does not support optioncwd
(#18641) (Francesco Trotta)Chores
793b718
chore: upgrade @eslint/js@9.7.0 (#18680) (Francesco Trotta)7ed6f9a
chore: package.json update for @eslint/js release (Jenkins)7bcda76
refactor: Add type references (#18652) (Nicholas C. Zakas)51bf57c
chore: add tech sponsors through actions (#18624) (Strek)6320732
refactor: don't useparent
property inNodeEventGenerator
(#18653) (Milos Djermanovic)9e6d640
refactor: move "Parsing error" prefix adding to Linter (#18650) (Milos Djermanovic)v9.6.0
Compare Source
v9.5.0
Compare Source
v9.4.0
Compare Source
v9.3.0
Compare Source
v9.2.0
Compare Source
v9.1.1
Compare Source
v9.1.0
Compare Source
v9.0.0
Compare Source
v8.57.1
Compare Source
prettier/eslint-config-prettier (eslint-config-prettier)
v10.0.1
Compare Source
eslint-config-prettier
10.0.0
Major Changes
5be64be
Thanks @abrahamguo! - add support for @stylistic formatting rulesVersions before 10.0.0
Version 9.1.0 (2023-12-02)
ESLINT_CONFIG_PRETTIER_NO_DEPRECATED
environment variable.Version 9.0.0 (2023-08-05)
"unicode-bom": "off"
to your config to disable it again, or run ESLint with--fix
to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@nstepien)!Version 8.10.0 (2023-08-03)
Version 8.9.0 (2023-07-27)
Version 8.8.0 (2023-03-20)
Version 8.7.0 (2023-03-06)
Version 8.6.0 (2023-01-02)
Version 8.5.0 (2022-03-02)
Version 8.4.0 (2022-02-19)
Version 8.3.0 (2021-04-24)
Version 8.2.0 (2021-04-13)
Version 8.1.0 (2021-02-24)
Version 8.0.0 (2021-02-21)
Changed: All configs have been merged into one!
To upgrade, change:
Into:
The
"prettier"
config now includes not just ESLint core rules, but also rules from all plugins. Much simpler!So … what’s the catch? Why haven’t we done this earlier? Turns out it’s just a sad mistake. I (@lydell) was confused when testing, and thought that turning off unknown rules in a config was an error. Thanks to Georgii Dolzhykov (@thorn0) for pointing this out!
If you use eslint-plugin-prettier, all you need is [plugin:prettier/recommended]:
(The ["prettier/prettier" config][prettier-prettier-config] still exists separately. It’s the odd one out. The main
"prettier"
config does not include the rules from it.)Changed: The CLI helper tool now only prints warnings for arrow-body-style and [prefer-arrow-callback], just like other “special rules.” This means that if you’ve decided to use those rules and eslint-plugin-prettier at the same time, you’ll get warnings but exit code zero (success).
Version 7.2.0 (2021-01-18)
Version 7.1.0 (2020-12-19)
Version 7.0.0 (2020-12-05)
Changed: At least ESLint 7.0.0 is now required.
Changed: arrow-body-style and [prefer-arrow-callback] are no longer turned off by default. They only need to be turned off if you use eslint-plugin-prettier. If you do, add
"prettier/prettier"
to your"extends"
array to turn them off again.Alternatively, update eslint-plugin-prettier to version 3.2.0 or later which automatically turns off these two rules in its
"plugin:prettier/recommended"
config.The CLI helper tool only warns about these rules if you have the
"prettier/prettier"
rule enabled for a file.Changed:
no-tabs
is now a validatable rule. If you use it, you should enableallowIndentationTabs
so that the rule works regardless of your Prettier config:Changed: The CLI helper tool is now called just
eslint-config-prettier
instead ofeslint-config-prettier-check
. This is so thatnpx eslint-config-prettier
always works regardless of whether you have already installedeslint-config-prettier
or not: If you have, the local installation is used; if you haven’t,npx
downloads a temporary copy.Changed: The CLI helper tool no longer requires you to pipe the output of
eslint --print-config
to it. Instead, it does that automatically for you via ESLint API:s added in ESLint v7.Before:
After:
Improved: The npm package is now 75% smaller.
Version 6.15.0 (2020-10-27)
Version 6.14.0 (2020-10-21)
Version 6.13.0 (2020-10-16)
Version 6.12.0 (2020-09-25)
Version 6.11.0 (2020-04-21)
Version 6.10.1 (2020-03-22)
npx
when running the CLI helper tool.Version 6.10.0 (2020-01-28)
Version 6.9.0 (2019-12-27)
Version 6.8.0 (2019-12-25)
Version 6.7.0 (2019-11-19)
Version 6.6.0 (2019-11-17)
Version 6.5.0 (2019-10-26)
Version 6.4.0 (2019-10-05)
Version 6.3.0 (2019-09-10)
Version 6.2.0 (2019-09-03)
Version 6.1.0 (2019-08-19)
Version 6.0.0 (2019-06-25)
Changed: The CLI helper tool now considers no-confusing-arrow to conflict if you use the default value of its
allowParens
option. The default was changed totrue
in ESLint 6, which conflicts with Prettier.If the CLI helper tool gives you errors about this after upgrading, the solution is to change this:
Into this:
The latter works in both ESLint 6 as well as in ESLint 5 and older.
Improved:
eslint --print-config
usage instructions. The CLI tool help text as well as the documentation has been updated to suggest commands that work in ESLint 6.0 as well as in ESLint 5 and older. (Instead ofeslint --print-config .
, useeslint --print-config path/to/main.js
.)Version 5.1.0 (2019-06-25)
Version 5.0.0 (2019-06-15)
Removed: [react/self-closing-comp]. This rule was added in v4.1.0 not because it conflicted with Prettier but because it was unnecessary when using Prettier. However, in v1.18.0 [Prettier stopped converting empty elements to self-closing elements][prettier-self-closing]. So the rule is not unnecessary anymore.
If you use Prettier v1.17.1 or older you should be able to upgrade eslint-config-prettier to v5.0.0 without having to do anything else.
If you use Prettier v1.18.0 or newer, you might get lint errors about for example changing
<div></div>
into<div />
. You have two options:eslint --fix
if you prefer to enforce self-closing elements where possible. This should fix all the errors."react/self-closing-comp": "off"
to your ESLint config if you use autofix from your editor and you face the same [issue as Prettier did][prettier-self-closing].Changed: Node.js 6 is no longer officially supported, but v5.0.0 should still work with it.
Version 4.3.0 (2019-05-16)
Version 4.2.0 (2019-04-25)
Version 4.1.0 (2019-02-26)
Version 4.0.0 (2019-01-26)
--fix
. They are turned off by default, and the CLI helper tool will warn about them (but not error if you do enable them). This won’t break your linting checks, but do note that these rules will be disabled unless you explicitly enable them again, and that you might see new warnings when running the CLI helper tool.Version 3.6.0 (2019-01-19)
Version 3.5.0 (2019-01-16)
vue/no-layout-rules
list, since there can be layout rules that don’t conflict with but rather complement Prettier.Version 3.4.0 (2019-01-13)
vue/no-layout-rules
config behind the scenes, so it should automatically stay up-to-date when new eslint-plugin-vue versions are released. Thanks to Michał Sajnóg (@michalsnik)!Version 3.3.0 (2018-11-11)
Version 3.2.0 (2018-11-10)
Version 3.1.0 (2018-09-22)
Version 3.0.1 (2018-08-13)
eslint --print-config
usage instructions.Version 3.0.0 (2018-08-13)
Version 2.10.0 (2018-08-13)
Version 2.9.0 (2017-11-26)
Version 2.8.0 (2017-11-19)
Version 2.7.0 (2017-11-01)
Version 2.6.0 (2017-09-23)
Version 2.5.0 (2017-09-16)
Version 2.4.0 (2017-09-02)
Version 2.3.0 (2017-06-30)
Version 2.2.0 (2017-06-17)
Version 2.1.1 (2017-05-20)
Version 2.1.0 (2017-05-13)
Version 2.0.0 (2017-05-07)
Changed/Improved: The CLI helper tool is now more helpful.
Changed: The no-confusing-arrow is now a special rule again, since it might conflict with recent Prettier versions.
Removed: The
react/wrap-multilines
rule (which has been deprecated for a while), since it was removed in eslint-plugin-react@7.Version 1.7.0 (2017-04-19)
Version 1.6.0 (2017-04-05)
Version 1.5.0 (2017-03-04)
Version 1.4.1 (2017-02-28)
Version 1.4.0 (2017-02-26)
Version 1.3.0 (2017-02-21)
Version 1.2.0 (2017-02-14)
Version 1.1.1 (2017-02-12)
Version 1.1.0 (2017-02-10)
Version 1.0.3 (2017-02-03)
"extends": "prettier/react"
now actually works.Version 1.0.2 (2017-01-30)
Version 1.0.1 (2017-01-29)
npm publish
mistake.Version 1.0.0 (2017-01-29)
Configuration
📅 Schedule: Branch creation - "after 10pm,before 5:00am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.